import { Entity, MemberId, PrimaryUuid, RichText, Code, Uuid, CreateDate, UpdateDate, Images, Digdit } from "@sker/core";

@Entity({ name: 'wx_comment' })
export class WxComment {
    @PrimaryUuid()
    id: string;

    @Images({ comment: '评论附件' })
    images: string[];

    @Digdit({ comment: '评分' })
    score: number;

    @RichText({ comment: '评论内容' })
    content: string;

    @MemberId({ comment: '评论者' })
    member_id: string;

    @Code({ comment: '评论类型，如：商品、卡券、教练、课程等' })
    type: string;

    @Uuid({ comment: '评论对象ID' })
    to: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}